package com.jun.serviceimpl;

import com.jun.entity.MemberConsume;
import com.jun.mapper.MemberConsumeMapper;
import com.jun.service.MemberConsumeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

@Service
@Transactional
public class MemberConsumeServiceImpl implements MemberConsumeService {
    @Autowired
    MemberConsumeMapper memberConsumeMapper;
    @Override
    public int insertMemberConsume(MemberConsume memberConsume) {
        return memberConsumeMapper.insertMemberConsume(memberConsume);
    }

    @Override
    public String searchOneDayConsume(String time) {
        return memberConsumeMapper.searchOneDayConsume(time);
    }

    @Override
    public String searchConsumeByInterval(Map<String, Object> map) {
        return memberConsumeMapper.searchConsumeByInterval(map);
    }
}
